package com.gaohe.official.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gaohe.common.core.annotation.Excel;
import com.gaohe.common.core.web.domain.BaseEntity;

/**
 * 财务情况对象 fm_finance
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class FmFinance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 财务id */
    private Long financeId;

    /** 类型(收入/支出) */
    @Excel(name = "类型(收入/支出)")
    private String type;

    /** 金额 */
    @Excel(name = "金额")
    private Long money;

    /** 收益来源(广告/置顶/跑腿) */
    @Excel(name = "收益来源(广告/置顶/跑腿)")
    private String source;

    /** 来源用户 */
    @Excel(name = "来源用户")
    private Long userId;

    /** 收益时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收益时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date financeTime;

    /** 是否删除 */
    private Long delFlag;

    public void setFinanceId(Long financeId) 
    {
        this.financeId = financeId;
    }

    public Long getFinanceId() 
    {
        return financeId;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setMoney(Long money) 
    {
        this.money = money;
    }

    public Long getMoney() 
    {
        return money;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFinanceTime(Date financeTime) 
    {
        this.financeTime = financeTime;
    }

    public Date getFinanceTime() 
    {
        return financeTime;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("financeId", getFinanceId())
            .append("type", getType())
            .append("money", getMoney())
            .append("source", getSource())
            .append("userId", getUserId())
            .append("financeTime", getFinanceTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
